import request from '@/utils/request'

export default {
  /**
   * 岗位列表
   * @param {*} data
   * @returns
   */
  queryPage(data) {
    return request({
      url: '/energy-carbon/grass-core/post/queryPage',
      method: 'post',
      data
    })
  },
  /**
   * 新增
   * @param {*} data
   * @returns
   */
  add(data) {
    return request({
      url: '/energy-carbon/grass-core/post/add',
      method: 'post',
      data
    })
  },
  /**
   * 详情
   * @param {*} data
   * @returns
   */
  detail(data) {
    return request({
      url: '/energy-carbon/grass-core/post/detail',
      method: 'post',
      data
    })
  },
  /**
   * 编辑更新
   * @param {*} data
   * @returns
   */
  update(data) {
    return request({
      url: '/energy-carbon/grass-core/post/update',
      method: 'post',
      data
    })
  },
  /**
   * 确认
   * @param {*} data
   * @returns
   */
  confirm(data) {
    return request({
      url: '/energy-carbon/cp-admin/post/confirm',
      method: 'post',
      data
    })
  },
  /**
   * 删除
   * @param {*} data
   * @returns
   */
  deleteById(data) {
    return request({
      url: '/energy-carbon/grass-core/post/deleteById',
      method: 'post',
      data
    })
  },
  /**
   * 批量删除
   * @param {*} data
   * @returns
   */
  batchDelete(data) {
    return request({
      url: '/energy-carbon/grass-core/post/batchDelete',
      method: 'post',
      data
    })
  },
  /**
   * 申报
   * @param {*} data
   * @returns
   */
  apply(data) {
    return request({
      url: '/energy-carbon/cp-admin/post/apply',
      method: 'post',
      data
    })
  },
  /**
   * 批量删除
   * @param {*} data
   * @returns
   */
  relateLogistics(data) {
    return request({
      url: '/energy-carbon/grass-core/post/relateLogistics',
      method: 'post',
      data
    })
  }
}
